package example.demo.controller;

import example.demo.component.collect.CollectTag;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

@RestController
@RequestMapping("/api/system/print-date")
public class PrintDateController {

    // http:localhost:8080/api/system/print-date/date
    @CollectTag
    @RequestMapping(path = "/date")
    public Date date() {
        return new Date(System.currentTimeMillis() + 10000);
    }
}
